<?php

namespace App\HttpController\Api\Admin;

use App\Service\Admin\DictTypeService;
use App\Service\Admin\StudentService;
use Swoole\Http\Status;
use think\facade\Db;

/**
 * 智慧宿舍-控制器
 * @author tirin
 * @since: 2021/08/24
 * Class Student
 */
class DormBuilding extends Common
{
    //获取教职工列表
    public function getWorkerList()
    {
        $ret = Db::table('sc_worker')->field('id `key`,`name`,`mobile`,concat(name,"(",mobile,")") as label')->select()->toArray();

        $this->success($ret,200);
    }
}
